package cn.com.cetccst.location.peroid;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import androidx.work.OneTimeWorkRequest;
import androidx.work.WorkManager;

public class PeroidLocateReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Log.e(PeroidLocateHelper.TAG, "peroid locate receiver received action");
        OneTimeWorkRequest workRequest = new OneTimeWorkRequest.Builder(PeroidLocateWorker.class)
                .build();

        WorkManager.getInstance(context).enqueue(workRequest);
    }
}
